home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Utilities / SuperDuper! 1.5.5.dmg / Extras / Daily Backup.applescript
Encoding:
Text File  |  2005-04-06  |  857 b   |  23 lines

  1. tell application "SuperDuper!"
  2.     try
  3.         --Wait until SuperDuper! is idle before loading and running the desired session
  4.         repeat while status is not idle
  5.             --Sleep # seconds is the best way to "wait" without using the CPU
  6.             tell application "System Events" to do shell script "sleep 5"
  7.         end repeat
  8.         if status is idle then
  9.             --Specify the saved settings as either an absolute path or just the name
  10.             run using settings "Daily Backup" without user interaction
  11.         end if
  12.         --Wait until the session is done
  13.         repeat while status is running
  14.             --Sleep # seconds is the best way to "wait" without using the CPU
  15.             tell application "System Events" to do shell script "sleep 5"
  16.         end repeat
  17.     on error errMsg
  18.         display dialog errMsg & " See section 12 of the User's Guide for help with this script."
  19.     end try
  20.     --Once done, tell SuperDuper! to quit
  21.     quit
  22. end tell
  23.